package com.mldong.modules.cms.mapper;

import com.mldong.modules.cms.entity.Category;
import com.mldong.modules.cms.vo.CategoryVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
 * <p>
 * 栏目 Mapper 接口
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    List<CategoryVO> selectCustom(IPage<CategoryVO> page, @Param(Constants.WRAPPER) Wrapper<Category> wrapper);
    CategoryVO findById(@Param("id") Long id);
}
